package com.kingyea.esb.test.ws.interceptor;

import org.apache.cxf.configuration.security.AuthorizationPolicy;
import org.apache.cxf.interceptor.Fault;
import org.apache.cxf.message.Message;
import org.apache.cxf.phase.AbstractPhaseInterceptor;

public class OutTestInterceptor extends AbstractPhaseInterceptor<Message> {

	public OutTestInterceptor(String phase) {
		super(phase);
	}

	@Override
	public void handleMessage(Message message) throws Fault {
		System.out.println(message.getClass());		
		System.out.println(message.getDestination());		
		System.out.println(message.getExchange());		
		System.out.println(message.getInterceptorChain());		
		System.out.println(message.getContent(AuthorizationPolicy.class));		
	}
	
	
}
